package com.tlgen.springdata;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
public class PersonService {

	@Autowired
	private PersonRepository personRepository;
	
	@Transactional
	public void updatePersonEmail(String email, Integer id) {
		
		personRepository.updatePersonEmail(email, id);
	
	}
}
